import * as React from 'react';
import {observer} from 'mobx-react'
import styles from './index.scss';
import BarLine from '../../pages/home/BarLine'

interface IProps {
    dataX?: string[]
    dataYB?: number[]
    dataYL?: number[]
}

@observer
class Home extends React.Component<IProps> {

    constructor(props) {
        super(props);
    }


    public render() {
        const {dataX, dataYB, dataYL} = this.props
        return (
            <div className={styles.left}>
                <BarLine dataX={dataX} dataYB={dataYB} dataYL={dataYL} />
            </div>
        );
    }
}

export default Home;
